package com.example.flying_personnel_management_system.dao;

import java.util.HashMap;
import java.util.List;

import com.example.flying_personnel_management_system.pojo.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface SysUserMapper {
    int deleteByPrimaryKey(Long userId);

    int insert(SysUser record);

    SysUser selectByPrimaryKey(Long userId);

    List<SysUser> selectAll();

    int updateByPrimaryKey(SysUser record);

    //系统管理员用户管理查询信息
    List<HashMap<String,String>> selectAllYu();

    //系统管理员用户管理新增用户
    int insertYu(SysUser sysUser);

    //查询要查询工作报告的id wu
    int allid(@Param("name") String name, @Param("bumen") String bumen);





}